PCIE TEST
---------
Summary: 
--------
	This test case is to test the functionality of PCIE present on DM814X EVM board. It gives the methodology and procedure for executing this test. 
This CCS test application validates the PCIE on the base board for its ability to transfer and receive data. This test uses two DM814X baseboards connected by a PCIE cable.


Setup Requirements:
-------------------
      The following are the setup requirements for this test case
      	1) Ensure that preliminary steps as we mentioned earlier have been met. 
	2) This test case requries two DM814X EVM Base boards (DM814X1 EVM and DM814X2 EVM) and a PCIE cable.
	3) Setup DM814X1 EVM and DM814X2 EVM in any  boot mode ( The boot mode will not matter). 
        4) One end of the PCIE cable is connected to the PCIE connector(U38) of DM814X1 EVM and  other end of the PCIE cable is connected to the PCIE connector(U38) of DM814X2 EVM.

Procedure and Steps involved:
-----------------------------

      	Open the CCS (Code Composer Studio) and get into Debug mode.
      	Power ON the DM814X1 EVM.
      	Select appropriate JTAG ( Target -> Launch TI Debugger -> <appropriate JTAG> )
      	Connect the target (Target -> Connect Target) and ensure that the target (EVM) is connected successfully.
      	Execute the following GEL scripts ( Scripts -> GEL scripts) on DM814X1 EVM.
      			1) PG 2.x DM814X --> ALL_ADPLL_CLOCKS_ENABLE_API
				2) DM814X System Initialization --> PCIE_configure_RC_all
      	Open the CCS (Code Composer Studio) and get into Debug mode.
      	Power ON the DM814X2 EVM.
      	Select appropriate JTAG ( Target -> Launch TI Debugger -> <appropriate JTAG> )
      	Connect the target (Target -> Connect Target) and ensure that the target (EVM) is connected successfully.
      	Execute the following GEL scripts ( Scripts -> GEL scripts) on DM814X2 EVM.
			1) PG 2.x DM814X --> ALL_ADPLL_CLOCKS_ENABLE_API
			2) DM814X System Initialization --> PCIE_configure_EP_all
      	Now execute the following GEL script only on DM814X1 EVM to start data transfer.
			1) DM814X System Initialization --> PCIE_rc_data_transfer
	This will send a few data bytes from DM814X1 EVM to DM814X2 EVM device OCMC RAM location starting from 0x40300000.
      	Now check the Data from location starting from 0x40300000 of DM814X2 EVM through the memory window of CCS and verify manually.


Observations to be done:
------------------------	
      	The following data should appear in the memory location starting from 0x40300000 while looking through the memory window of CCS connected to DM814X2 EVM.
			0x40300000  = 0x00000020;
			0x40300004  = 0x404001A0;
			0x40300008  = 0xE1A00000;
			0x4030000C = 0xE1A00000;
			0x40300010  = 0xE1A00000;
			0x40300014  = 0xE1A00000;
			0x40300018  = 0xE1A00000;
			0x4030001C = 0xE1A00000;
			0x40300020  = 0xEAFFFFFE;
			0x40300024  = 0xDEADBABE;
     	If the data read from the memory window matches the data given above, the test case is declared PASS else declared FAILED.
     	The success of the test case proves PCIE for its ability to transfer and receive data.
